var express = require('express');
var router = express.Router();

// 引入需要使用的控制器
const UserController = require('../controller/user')

/* GET home page. */
router.get('/', function(req, res) {
  UserController.index().then(res => {
    console.log(res);
  })

  res.end('hello world')
});

module.exports = router;
